/*
** resource.h for  in /home/massro_a//zappy-2011/client_graphique/ressources
** 
** Made by anicet massrouf
** Login   <massro_a@epitech.net>
** 
** Started on  Thu Jun 30 18:32:34 2011 ancet massrouf
** Last update Thu Jun 30 19:43:52 2011 ancet massrouf
*/

#ifndef		__RESOURCE_H__
# define	__RESOURCE_H__

# define	MALLOC_FAIL "malloc failed in init_resource\n"

typedef enum
  {
    LINEMATE = 0, 
    DERAUMERE, 
    SIBUR,
    MENDIANE,
    PHIRAS,
    THYSTAME,
    NOURRITURE;
  }			resource_type;

typedef	struct		s_resource
{  
  resource_type		type_resource;
  SDL_Surface		*resource_texture;
  SDL_Rect		*texture_position;
  int			x;
  int			y;
}			t_resource;

void			init_resource(t_resource *);
void			draw(SDL_Surface *);

#endif	/* __RESOURCE_H__*/
